<?php

	include_once('base.php');

	$result = file_put_contents(BASE_DIR.DIRECTORY_SEPARATOR.$_GET['name'], $_POST['text']);
	if($text!==false){
		echo '{}';
	} else {
        header('HTTP/1.1 500 Internal Server Error');
	}